//
//  serviceDefualt.m
//  ZITHER
//
//  Created by weixin on 2018/8/17.
//  Copyright © 2018年 weixn. All rights reserved.
//


#import "serviceDefualt.h"

@implementation serviceDefualt

/**
 图像识别
 
 @param imgUrl 图片路径
 @return 匹配图片数据
 */
+(RACSignal *)loadAdviserDataImgUrl:(NSString*)imgUrl reponseObjctClass:(Class)reponseObjctClass{
    NSString *url = [NSString stringWithFormat:@"%@%@",Main_Token_Model_MANAGER.RootUrl,imgRecognition];
    NSMutableDictionary *param = [NSMutableDictionary dictionary];
    param[@"imgUrl"] = [NSString stringWithFormat:@"%@%@",RootUrlImage,imgUrl];
//        param[@"imgUrl"] = @"http://mtime-1252014125.file.myqcloud.com/img/goods/499f581c52a842928b2d4ef6eea4769a.jpg";

    return  [self postWithUrl:url param:param reponseObjctClass:nil];
}


/**
 获取查询条件
 
 @return 获取查询条件
 */
+(RACSignal *)loadGoodsSearchConditions:(Class)reponseObjctClass{
    NSString *url = [NSString stringWithFormat:@"%@%@",Main_Token_Model_MANAGER.RootUrl,searchConditions];
    NSMutableDictionary *param = [NSMutableDictionary dictionary];
    return [self getWithUrl:url param:param reponseObjctClass:reponseObjctClass];
}


/**
 获取产品列表
 
 @param page 页数
 @param size 数据量
 @param sort 价格
 @return 获取产品列表
 */
+(RACSignal *)loadGoodsList:(NSDictionary *)dic page:(NSInteger)page sort:(NSString*)sort reponseObjctClass:(Class)reponseObjctClass{
//    NSDictionary *dic1 = dic;
//    NSInteger page1 = page;
    NSString *url = [NSString stringWithFormat:@"%@%@",Main_Token_Model_MANAGER.RootUrl,goods];
    NSMutableDictionary *param = [[NSMutableDictionary alloc]init];
    
    
    NSMutableArray *arrM = [[NSMutableArray alloc]init];
    for (NSString *str in [dic allKeys]) {
        
    
        NSLog(@"");

        if ([str isEqualToString:@"brand"]) {
            param[@"brandIds"] =@[dic[str]];
        }else if ([str isEqualToString:@"key_words"]) {
            param[@"keyword"] =@[dic[str]];
        }else if ([str isEqualToString:@"price"]) {
            param[@"secondhandPriceRanges"] =@[dic[str]];
        }else{
            NSString *value = dic[str];
            NSDictionary *dic1= @{@"labelId":str,@"valueIds":@[value]};
            [arrM addObject:dic1];
        }
        
//        param[str] = dic[str];
    }
    param[@"attributes"] = arrM;

    NSInteger pageText = page+1;
//    NSString *strPage = [NSString stringWithFormat:@"%ld",pageText];
    

//    param[@"page"] = strPage;
    param[@"page"] = [NSNumber numberWithInteger:pageText];

//    param[@"page"] = [NSString isBlankString:strPage]?strPage:@"1";
    param[@"sort"] = sort;
    
//    param[@"sort"] = @"secondHandPrice,desc";

    param[@"size"] = [NSNumber numberWithInt:10] ;//@"10"

    return [self postWithUrl:url param:param reponseObjctClass:reponseObjctClass];
    
}


/**
 关注商品列表
 @param page (page 页数 size 数据量 sort 价格)
 @return 关注商品列表
 */

+(RACSignal *)loadgetFollowGoodspage:(NSInteger)page reponseObjctClass:(Class)reponseObjctClass{
    NSString *url = [NSString stringWithFormat:@"%@%@",Main_Token_Model_MANAGER.RootUrl,getFollowGoods];
    NSMutableDictionary *param = [NSMutableDictionary dictionary];
    param[@"page"] = [NSString stringWithFormat:@"%ld",page+1];
    
    param[@"size"] = @"10";
    
    return [self postWithUrl:url param:param reponseObjctClass:reponseObjctClass];
}


/**
 我的询价列表
 @return 我的询价列表
 */

+(RACSignal *)loadgetMyEnquiryList:(Class)reponseObjctClass{
    NSString *url = [NSString stringWithFormat:@"%@%@",Main_Token_Model_MANAGER.RootUrl,getMyEnquiryList];
    
    return [self postWithUrl:url param:nil reponseObjctClass:reponseObjctClass];
}

/**
 已结束的询价列表
 @return 我的询价列表
 */

+(RACSignal *)loadgetMyEndEnquiryList:(NSUInteger)page reponseObjctClass:(Class)reponseObjctClass{
    NSString *url = [NSString stringWithFormat:@"%@%@",Main_Token_Model_MANAGER.RootUrl,getMyEndEnquiryList];
    NSMutableDictionary *param = [NSMutableDictionary dictionary];
    param[@"page"] = [NSString stringWithFormat:@"%ld",page+1];
    param[@"size"] = @"10";
    
    return [self postWithUrl:url param:param reponseObjctClass:reponseObjctClass];
}


/**
 获取热门列表
 @param dic (page 页数 size 数据量 热门度排序(search_count))
 @return 获取产品列表
 */
+(RACSignal *)loadGoodsHotList:(NSInteger)page index:(NSInteger)index reponseObjctClass:(Class)reponseObjctClass{
    NSString *url = [NSString stringWithFormat:@"%@%@",Main_Token_Model_MANAGER.RootUrl,goods];
    NSMutableDictionary *param = [NSMutableDictionary dictionary];
    param[@"page"] = [NSString stringWithFormat:@"%ld",page+1];
    param[@"size"] = @"10";
    
    
    switch (index) {
        case 0:
            param[@"sort"] = @"sourceCount,desc";
            break;
        case 1:
            param[@"sort"] = @"searchCount,desc";
            break;
        case 2:
            param[@"sort"] = @"secondHandPrice,asc";
            break;
        case 3:
            param[@"sort"] = @"secondHandPrice,desc";
            break;
            
        default:
            break;
    }


    
    return [self postWithUrl:url param:param reponseObjctClass:reponseObjctClass];
}


/**
 我的询价SKU详情
 @param id (page 页数 size 数据量 热门度排序(search_count))
 @return 获取产品列表
 */

+(RACSignal *)loadskuDetail:(NSString*)id reponseObjctClass:(Class)reponseObjctClass{
    NSString *url = [NSString stringWithFormat:@"%@%@",Main_Token_Model_MANAGER.RootUrl,skuDetail];
    NSMutableDictionary *param = [NSMutableDictionary dictionary];
    param[@"goodsId"] = id;
//    param[@"goodsId"] = @"13095";
    
    return [self postWithUrl:url param:param reponseObjctClass:reponseObjctClass];
}


/**
 公开货源列表
 @param goodsId 商品 ID
 @param page 页数
 @return 公开货源列表
 */

+(RACSignal *)loadGetOpenGoodsSourceInfo:(NSString*)goodsId page:(NSInteger)page reponseObjctClass:(Class)reponseObjctClass{
    NSString *url = [NSString stringWithFormat:@"%@%@",Main_Token_Model_MANAGER.RootUrl,getOpenGoodsSourceInfo];
    NSMutableDictionary *param = [NSMutableDictionary dictionary];
    param[@"goodsId"] = goodsId;
    param[@"page"] =  [NSString stringWithFormat:@"%ld",page+1];
    param[@"size"] = @"10";
    
    return [self postWithUrl:url param:param reponseObjctClass:reponseObjctClass];
}

/**
 新公开货源列表
 @param goodsId 商品 ID
 @param page 页数
 @return 公开货源列表
 */
+(RACSignal *)loadgetNewOpenGoodsSourceInfo:(NSString*)goodsId page:(NSInteger)page userEnquiryId:(NSString*)userEnquiryId lookTime:(NSString*)lookTime  reponseObjctClass:(Class)reponseObjctClass{
    NSString *url = [NSString stringWithFormat:@"%@%@",Main_Token_Model_MANAGER.RootUrl,getNewOpenGoodsSourceInfo];
    NSMutableDictionary *param = [NSMutableDictionary dictionary];
    if (page == nil) {
        param[@"page"] = @"1";
    }else{
        param[@"page"] =  [NSString stringWithFormat:@"%ld",page+1];
    }
    param[@"size"] = @"10";
    
    
    NSString *goodsId1 = [NSString stringWithFormat:@"%@",goodsId];

    NSMutableString * strM = goodsId;
    param[@"goodsId"] = strM;
    param[@"userEnquiryId"] = userEnquiryId;
    param[@"lookTime"] = lookTime;
//    param[@"lookTime"] = @"2018-08-08 18:04:01";
    
    return [self postWithUrl:url param:param reponseObjctClass:reponseObjctClass];
}



/**
 接收报价
 @param goodsId 商品 ID
 @param priceId 价格 ID
 @return 公开货源列表
 */
+(RACSignal *)loadacceptGoodsPrice:(NSString*)goodsId priceId:(NSString*)priceId reponseObjctClass:(Class)reponseObjctClass{
    NSString *url = [NSString stringWithFormat:@"%@%@",Main_Token_Model_MANAGER.RootUrl,acceptGoodsPrice];
    NSMutableDictionary *param = [NSMutableDictionary dictionary];
    param[@"goodsId"] = goodsId;
    param[@"priceId"] =  priceId;
    
    return [self postWithUrl:url param:param reponseObjctClass:reponseObjctClass];
}


/**
 提醒商家报价
 @param goodsId 商品 ID
 @return 公开货源列表
 */

+(RACSignal *)loadRemindBizSourcePrice:(NSString*)goodsId reponseObjctClass:(Class)reponseObjctClass{
    NSString *url = [NSString stringWithFormat:@"%@%@",Main_Token_Model_MANAGER.RootUrl,remindBizSourcePrice];
    NSMutableDictionary *param = [NSMutableDictionary dictionary];
    param[@"goodsSourceId"] = goodsId;
    
    return [self postWithUrl:url param:param reponseObjctClass:reponseObjctClass];
}



/**
 接受报价列表
 @param goodsId 商品 ID
 @return 公开货源列表
 */
+(RACSignal *)loadGetAcceptPriceList:(NSString*)goodsId page:(NSInteger)page reponseObjctClass:(Class)reponseObjctClass{
    NSString *url = [NSString stringWithFormat:@"%@%@",Main_Token_Model_MANAGER.RootUrl,getAcceptPriceList];
    NSMutableDictionary *param = [NSMutableDictionary dictionary];
    param[@"goodsId"] = goodsId;
    param[@"page"] =  [NSString stringWithFormat:@"%ld",page+1];
    param[@"size"] =  @"10";


    return [self postWithUrl:url param:param reponseObjctClass:reponseObjctClass];

}

/**
 设置为不感兴趣的报价
 @param goodsId 商品 ID
 @return 设置为不感兴趣的报价
 */
+(RACSignal *)loadNoInterestPrice:(NSString*)goodsId reponseObjctClass:(Class)reponseObjctClass{
    NSString *url = [NSString stringWithFormat:@"%@%@",Main_Token_Model_MANAGER.RootUrl,noInterestPrice];
    NSMutableDictionary *param = [NSMutableDictionary dictionary];
    param[@"id"] = goodsId;
    
    return [self postWithUrl:url param:param reponseObjctClass:reponseObjctClass];
}


/**
 收到的报价列表
 @param goodsId 商品 ID
 @param page 分页
 @return 公开货源列表
 */
+(RACSignal *)loadGetBizPriceInfoList:(NSString*)goodsId page:(NSInteger)page  userEnquiryId:(NSString*)userEnquiryId reponseObjctClass:(Class)reponseObjctClass{
    NSString *url = [NSString stringWithFormat:@"%@%@",Main_Token_Model_MANAGER.RootUrl,getBizPriceInfoList];
    NSMutableDictionary *param = [NSMutableDictionary dictionary];
    param[@"goodsId"] = goodsId;
    param[@"page"] =  [NSString stringWithFormat:@"%ld",page+1];
    param[@"size"] =  @"100";
//    param[@"isInterest"] =  @"0";
    param[@"userEnquiryId"] = userEnquiryId;

    return [self postWithUrl:url param:param reponseObjctClass:reponseObjctClass];
}


/**
 新收到报价
 @param goodsId 商品 ID
 @param page 分页
 @return 新收到报价列表
 */
+(RACSignal *)loadcheckNewBizPriceInfo:(NSString*)goodsId page:(NSInteger)page reponseObjctClass:(Class)reponseObjctClass{
    NSString *url = [NSString stringWithFormat:@"%@%@",Main_Token_Model_MANAGER.RootUrl,checkNewBizPriceInfo];
    NSMutableDictionary *param = [NSMutableDictionary dictionary];
    param[@"goodsId"] = goodsId;
    param[@"page"] =  [NSString stringWithFormat:@"%ld",page+1];
    param[@"size"] =  @"10";
    
    return [self postWithUrl:url param:param reponseObjctClass:reponseObjctClass];
}

/**
 开启询价
 @param goodsId 商品 ID
 @return 公开货源列表
 */
+(RACSignal *)loadopenEnquiry:(NSString*)goodsId{
    NSString *url = [NSString stringWithFormat:@"%@%@",Main_Token_Model_MANAGER.RootUrl,openEnquiry];
    NSMutableDictionary *param = [NSMutableDictionary dictionary];
    param[@"goodsId"] = goodsId;
    param[@"size"] =  @"10";
    
    return [self postWithUrl:url param:param reponseObjctClass:nil];
}


/**
 关注商品
 @param goodsId 商品 ID
 @return 成功or失败
 */
+(RACSignal *)loadonFollowGoods:(NSString*)goodsId reponseObjctClass:(Class)reponseObjctClass{
    NSString *url = [NSString stringWithFormat:@"%@%@",Main_Token_Model_MANAGER.RootUrl,onFollowGoods];
    NSMutableDictionary *param = [NSMutableDictionary dictionary];
    param[@"goodsId"] = goodsId;
    return [self postWithUrl:url param:param reponseObjctClass:nil];
}


/**
 取消关注商品
 @param goodsId 商品 ID
 @return 成功or失败
 */
+(RACSignal *)loadcancelFollowGoods:(NSString*)goodsId reponseObjctClass:(Class)reponseObjctClass{
    NSString *url = [NSString stringWithFormat:@"%@%@",Main_Token_Model_MANAGER.RootUrl,cancelFollowGoods];
    NSMutableDictionary *param = [NSMutableDictionary dictionary];
    param[@"goodsId"] = goodsId;
    return [self postWithUrl:url param:param reponseObjctClass:nil];
}

#pragma mark - ---  刷新询价

+(RACSignal *)loadrefreshEnquiry:(NSString*)goodsId reponseObjctClass:(Class)reponseObjctClass{
    NSString *url = [NSString stringWithFormat:@"%@%@",Main_Token_Model_MANAGER.RootUrl,refreshEnquiry];
    NSMutableDictionary *param = [NSMutableDictionary dictionary];
    param[@"goodsId"] = goodsId;
    return [self postWithUrl:url param:param reponseObjctClass:nil];
}


#pragma mark - ---  结束询价

+(RACSignal *)loadendEnquiryPrice:(NSString*)userEnquiryId reponseObjctClass:(Class)reponseObjctClass{
    NSString *url = [NSString stringWithFormat:@"%@%@",Main_Token_Model_MANAGER.RootUrl,endEnquiryPrice];
    NSMutableDictionary *param = [NSMutableDictionary dictionary];
    param[@"userEnquiryId"] = userEnquiryId;
    return [self postWithUrl:url param:param reponseObjctClass:nil];
}

#pragma mark - ---  询价历史记录

+(RACSignal *)loadgetHistoryEnquiryList:(NSString*)goodsId page:(NSInteger)page reponseObjctClass:(Class)reponseObjctClass{
    NSString *url = [NSString stringWithFormat:@"%@%@",Main_Token_Model_MANAGER.RootUrl,getHistoryEnquiryList];
    NSMutableDictionary *param = [NSMutableDictionary dictionary];
    param[@"goodsId"] = goodsId;
//    param[@"goodsId"] = @"13587";
    param[@"page"] =  [NSString stringWithFormat:@"%ld",page+1];
    param[@"size"] = @"10";
   
    return [self postWithUrl:url param:param reponseObjctClass:nil];
}

/**
 不敢兴趣报价列表
 @param goodsId 商品 ID
 @param page 分页
 @return 公开货源列表
 */
+(RACSignal *)loadGetNoInterestList:(NSString*)goodsId page:(NSInteger)page reponseObjctClass:(Class)reponseObjctClass{
    NSString *url = [NSString stringWithFormat:@"%@%@",Main_Token_Model_MANAGER.RootUrl,getBizPriceInfoList];
    NSMutableDictionary *param = [NSMutableDictionary dictionary];
    param[@"goodsId"] = goodsId;
    param[@"page"] =  [NSString stringWithFormat:@"%ld",page+1];
    param[@"size"] =  @"10";
    param[@"isInterest"] =@"1";
    
    return [self postWithUrl:url param:param reponseObjctClass:reponseObjctClass];
}


/**
 发布 UGC
 @param ugcContent 用户评论
 @param fileList 批量上传图片
 @return 成功
 */
+(RACSignal *)loadGetAddUserUgc:(NSString*)ugcContent fileList:(NSArray*)fileList userSubjectId:(NSString*)userSubjectId reponseObjctClass:(Class)reponseObjctClass{
    NSString *url = [NSString stringWithFormat:@"%@%@",Main_Token_Model_MANAGER.RootUrl,addUserUgc];
    NSMutableDictionary *param = [NSMutableDictionary dictionary];
    param[@"ugcContent"] = ugcContent;
    param[@"fileList"] =  fileList;
    param[@"userSubjectId"] =  userSubjectId;

    return [self postWithUrl:url param:param reponseObjctClass:reponseObjctClass];
}


/**
 UGC 列表
 @param userId 用户ID
 @param isEssence 是否精选
 @return 公开货源列表
 */
+(RACSignal *)loadGetuserUgcList:(NSString*)userId isEssence:(NSString*)isEssence page:(NSInteger)page reponseObjctClass:(Class)reponseObjctClass{
    NSString *url = [NSString stringWithFormat:@"%@%@",Main_Token_Model_MANAGER.RootUrl,userUgcList];
    NSMutableDictionary *param = [NSMutableDictionary dictionary];
//    param[@"userId"] = userId;
    param[@"page"] =  [NSString stringWithFormat:@"%ld",page+1];
    param[@"size"] =  @"10";
//    param[@"isEssence"] = isEssence;
    
    return [self postWithUrl:url param:param reponseObjctClass:reponseObjctClass];
}

/**
 UGC 详情页
 @param ugcId 用户ID
 @return 公开货源列表
 */
+(RACSignal *)loadGetUserUgcDetail:(NSString*)ugcId reponseObjctClass:(Class)reponseObjctClass{
    NSString *url = [NSString stringWithFormat:@"%@%@",Main_Token_Model_MANAGER.RootUrl,userUgcDetail];
    NSMutableDictionary *param = [NSMutableDictionary dictionary];
    param[@"ugcId"] = ugcId;
    
    return [self postWithUrl:url param:param reponseObjctClass:reponseObjctClass];
}


/**
 UGC 评论列表
 @param relId 关联ID
 @param relType 如果relType的值是1  则relId为ugcId 如果relType的值是2 则relId为pgcId
 @return 公开货源列表
 */
+(RACSignal *)loadGetuserCommentList:(NSString*)relId relType:(NSString*)relType page:(NSInteger)page reponseObjctClass:(Class)reponseObjctClass{
    NSString *url = [NSString stringWithFormat:@"%@%@",Main_Token_Model_MANAGER.RootUrl,userCommentList];
    NSMutableDictionary *param = [NSMutableDictionary dictionary];
    param[@"relId"] = relId;
    param[@"page"] =  [NSString stringWithFormat:@"%ld",page+1];
    param[@"size"] =  @"10";
    param[@"relType"] =  @"relType";
    return [self postWithUrl:url param:param reponseObjctClass:reponseObjctClass];
}


#pragma mark - ---  自己发表的UGC列表
+(RACSignal *)loadMyselfUgcListUserIdU:(NSString*)userId page:(NSInteger)page reponseObjctClass:(Class)reponseObjctClass{
    NSString *url = [NSString stringWithFormat:@"%@%@",Main_Token_Model_MANAGER.RootUrl,myselfUgcList];
    NSMutableDictionary *param = [NSMutableDictionary dictionary];
    param[@"page"] = [NSString stringWithFormat:@"%ld",page+1];
    param[@"size"] = @"10";
    param[@"userId"] = userId;
    
    return [self postWithUrl:url param:param reponseObjctClass:reponseObjctClass];
}


#pragma mark - ---  UGC点赞或者取消
+(RACSignal *)loadUpdateUserLaud:(NSString*)ugcId laudType:(NSString*)laudType reponseObjctClass:(Class)reponseObjctClass{
    NSString *url = [NSString stringWithFormat:@"%@%@",Main_Token_Model_MANAGER.RootUrl,updateUgcLaud];
    NSMutableDictionary *param = [NSMutableDictionary dictionary];
    param[@"ugcId"] =  ugcId;
    param[@"laudType"] =  laudType;
    
    return [self postWithUrl:url param:param reponseObjctClass:reponseObjctClass];
}

#pragma mark - ---  商品详情页获取地图
+(RACSignal *)loadGetBizMap:(NSString*)location markers:(NSString*)markers reponseObjctClass:(Class)reponseObjctClass{
    
    //https://restapi.amap.com/v3/staticmap?location=116.481485,39.990464&zoom=10&size=100*100&markers=mid,,A:116.481485,39.990464&key=9e9d6a34d399d6a3c57ed3a15c69e76e

    NSMutableDictionary *param = [NSMutableDictionary dictionary];
    param[@"location"] =  @"116.481485,39.990464";
    param[@"zoom"] =  @"16";
    param[@"size"] =  [NSString stringWithFormat:@"%f*%d",kScreenW,300];
    param[@"markers"] =  @"mid,,A:116.481485,39.990464";
    param[@"key"] =  @"9e9d6a34d399d6a3c57ed3a15c69e76e";
   
    return  [self getWithUrl:getBizMap param:param reponseObjctClass:nil];
}



#pragma mark - ---   发表主评论
+(RACSignal *)loadAddUserComment:(NSString*)relId commentContent:(NSString*)commentContent relType:(NSString*)relType replyUserId:(NSString*)replyUserId reponseObjctClass:(Class)reponseObjctClass{
    NSString *url = [NSString stringWithFormat:@"%@%@",Main_Token_Model_MANAGER.RootUrl,addUserComment];
    NSMutableDictionary *param = [NSMutableDictionary dictionary];
    param[@"relId"] =  relId;
    param[@"relType"] =  relType;
    param[@"commentContent"] =  commentContent;
    param[@"replyUserId"] =  replyUserId;
    
    
    return [self postWithUrl:url param:param reponseObjctClass:reponseObjctClass];
}

#pragma mark - ---  发表子评论

/**
 发表子评论
 @param relId  详情 ID
 @param replyUserId 回复 ID
 @param relType 如果relType的值是1  则relId为ugcId 如果relType的值是2  则relId为pgcId
 @param commentContent 发布内容
 @param commentParentId C->B ID
 @param commentMasterId C->A ID
 @return 成功or失败
 */
+(RACSignal *)loadAddSonComment:(NSString*)relId replyUserId:(NSString*)replyUserId relType:(NSString*)relType commentParentId:(NSString*)commentParentId  commentMasterId:(NSString*)commentMasterId commentContent:(NSString*)commentContent reponseObjctClass:(Class)reponseObjctClass{
    
    NSString *url = [NSString stringWithFormat:@"%@%@",Main_Token_Model_MANAGER.RootUrl,addSonComment];
    NSMutableDictionary *param = [NSMutableDictionary dictionary];
    param[@"relId"] =  relId;
    param[@"relType"] =  relType;
    param[@"replyUserId"] =  replyUserId;
    param[@"commentContent"] =  commentContent;
    param[@"commentParentId"] =  commentParentId;
    param[@"commentMasterId"] =  commentMasterId;
    
    return [self postWithUrl:url param:param reponseObjctClass:reponseObjctClass];
    
}

#pragma mark - ---  删除评论
+(RACSignal *)loadDelUserCommentCommentId:(NSString*)commentId reponseObjctClass:(Class)reponseObjctClass{
    NSString *url = [NSString stringWithFormat:@"%@%@",Main_Token_Model_MANAGER.RootUrl,delUserComment];
    NSMutableDictionary *param = [NSMutableDictionary dictionary];
    param[@"commentId"] =  commentId;
    
    return [self postWithUrl:url param:param reponseObjctClass:reponseObjctClass];
}

#pragma mark - ---  删除UGC
+(RACSignal *)loaddelUserUgcUgcId:(NSString*)ugcId reponseObjctClass:(Class)reponseObjctClass{
    NSString *url = [NSString stringWithFormat:@"%@%@",Main_Token_Model_MANAGER.RootUrl,delUserUgc];
    NSMutableDictionary *param = [NSMutableDictionary dictionary];
    param[@"ugcId"] =  ugcId;
    
    return [self postWithUrl:url param:param reponseObjctClass:reponseObjctClass];
}

#pragma mark - ---  收到的消息
+(RACSignal *)loadGetUserMsgListPage:(NSInteger)page reponseObjctClass:(Class)reponseObjctClass{
    NSString *url = [NSString stringWithFormat:@"%@%@",Main_Token_Model_MANAGER.RootUrl,getUserMsgList];
    NSMutableDictionary *param = [NSMutableDictionary dictionary];
    param[@"page"] =  [NSString stringWithFormat:@"%d",page+1];
    param[@"size"] =  @"10";

    return [self postWithUrl:url param:param reponseObjctClass:reponseObjctClass];
}

/** 我的点赞创作列表 */
+(RACSignal *)loadGetLaudContentListPage:(NSInteger)page reponseObjctClass:(Class)reponseObjctClass{
    NSString *url = [NSString stringWithFormat:@"%@%@",Main_Token_Model_MANAGER.RootUrl,getLaudContentList];
    NSMutableDictionary *param = [NSMutableDictionary dictionary];
    param[@"page"] =  [NSString stringWithFormat:@"%d",page+1];
    param[@"size"] =  @"10";
    
    return [self postWithUrl:url param:param reponseObjctClass:reponseObjctClass];
}

/** 封面创作列表 */
+(RACSignal *)loadGetCoverCreateListPage:(NSInteger)page type:(NSString*)type reponseObjctClass:(Class)reponseObjctClass{
    NSString *url = [NSString stringWithFormat:@"%@%@",Main_Token_Model_MANAGER.RootUrl,getCoverCreateList];
    NSMutableDictionary *param = [NSMutableDictionary dictionary];
    param[@"page"] =  [NSString stringWithFormat:@"%d",page+1];
    param[@"size"] =  @"10";
    param[@"type"] =  type;

    return [self postWithUrl:url param:param reponseObjctClass:reponseObjctClass];
}

/** 我的关注列表 */
+(RACSignal *)loadGetMyselfFollowListPage:(NSInteger)page reponseObjctClass:(Class)reponseObjctClass{
    NSString *url = [NSString stringWithFormat:@"%@%@",Main_Token_Model_MANAGER.RootUrl,getMyselfFollowList];
    NSMutableDictionary *param = [NSMutableDictionary dictionary];
    param[@"page"] =  [NSString stringWithFormat:@"%d",page+1];
    param[@"size"] =  @"10";
    
    return [self postWithUrl:url param:param reponseObjctClass:reponseObjctClass];
}

/** 关注我的列表 */
+(RACSignal *)loadGetFollowMeListPage:(NSInteger)page reponseObjctClass:(Class)reponseObjctClass{
    NSString *url = [NSString stringWithFormat:@"%@%@",Main_Token_Model_MANAGER.RootUrl,getFollowMeList];
    NSMutableDictionary *param = [NSMutableDictionary dictionary];
    param[@"page"] =  [NSString stringWithFormat:@"%d",page+1];
    param[@"size"] =  @"10";
    
    return [self postWithUrl:url param:param reponseObjctClass:reponseObjctClass];
}

/** 添加关注 */
+(RACSignal *)loadAddUserFollowFollowUserId:(NSString*)followUserId reponseObjctClass:(Class)reponseObjctClass{
    NSString *url = [NSString stringWithFormat:@"%@%@",Main_Token_Model_MANAGER.RootUrl,addUserFollow];
    NSMutableDictionary *param = [NSMutableDictionary dictionary];
    param[@"followUserId"] =  followUserId;
    
    return [self postWithUrl:url param:param reponseObjctClass:reponseObjctClass];
}
/** 取消关注 */
+(RACSignal *)loadCancelUserFollowFollowUserId:(NSString*)followUserId reponseObjctClass:(Class)reponseObjctClass{
    NSString *url = [NSString stringWithFormat:@"%@%@",Main_Token_Model_MANAGER.RootUrl,cancelUserFollow];
    NSMutableDictionary *param = [NSMutableDictionary dictionary];
    param[@"followUserId"] =  followUserId;
    
    return [self postWithUrl:url param:param reponseObjctClass:reponseObjctClass];
}

/** 个人主页用户信息 */
+(RACSignal *)loadMainUserInfomainUserInfo:(NSString*)mainUserInfo1 reponseObjctClass:(Class)reponseObjctClass{
    NSString *url = [NSString stringWithFormat:@"%@%@",Main_Token_Model_MANAGER.RootUrl,mainUserInfo];
    NSMutableDictionary *param = [NSMutableDictionary dictionary];
    param[@"mainUserId"] =  mainUserInfo1;
    
    return [self postWithUrl:url param:param reponseObjctClass:reponseObjctClass];
}

/** PGC详情 */
+(RACSignal *)loaduserPgcDetail:(NSString*)userPgcDetail1 reponseObjctClass:(Class)reponseObjctClass{
    NSString *url = [NSString stringWithFormat:@"%@%@",Main_Token_Model_MANAGER.RootUrl,userPgcDetail];
    NSMutableDictionary *param = [NSMutableDictionary dictionary];
    param[@"pgcId"] =  userPgcDetail1;
    param[@"ignoreCount"] =  @"WTF_COUNT_IN_WEBVIEW";

    return [self postWithUrl:url param:param reponseObjctClass:reponseObjctClass];
}

/** 点赞或者取消PGC */
+(RACSignal *)loadupdatePgcLaudPgcId:(NSString*)pgcId laudType:(NSString*)laudType reponseObjctClass:(Class)reponseObjctClass{
    NSString *url = [NSString stringWithFormat:@"%@%@",Main_Token_Model_MANAGER.RootUrl,updatePgcLaud];
    NSMutableDictionary *param = [NSMutableDictionary dictionary];
    param[@"pgcId"] =  pgcId;
    param[@"laudType"] =  laudType;

    return [self postWithUrl:url param:param reponseObjctClass:reponseObjctClass];
}

/** 我关注的创作列表 */
+(RACSignal *)loadMySelfFollowCreateListPage:(NSInteger)page reponseObjctClass:(Class)reponseObjctClass{
    NSString *url = [NSString stringWithFormat:@"%@%@",Main_Token_Model_MANAGER.RootUrl,mySelfFollowCreateList];
    NSMutableDictionary *param = [NSMutableDictionary dictionary];
    param[@"page"] =  [NSString stringWithFormat:@"%d",page+1];
    param[@"size"] =  @"10";
    
    return [self postWithUrl:url param:param reponseObjctClass:reponseObjctClass];
}

/** PGC列表（杂志）*/
+(RACSignal *)loadUserPgcListPage:(NSInteger)page reponseObjctClass:(Class)reponseObjctClass{
    NSString *url = [NSString stringWithFormat:@"%@%@",Main_Token_Model_MANAGER.RootUrl,userPgcList];
    NSMutableDictionary *param = [NSMutableDictionary dictionary];
    param[@"page"] =  [NSString stringWithFormat:@"%d",page+1];
    param[@"size"] =  @"10";
    return [self postWithUrl:url param:param reponseObjctClass:reponseObjctClass];

}

/** 个人主页列表 */
+(RACSignal *)loadMainCreateListuUserId:(NSString*)userId page:(NSInteger)page reponseObjctClass:(Class)reponseObjctClass{
    NSString *url = [NSString stringWithFormat:@"%@%@",Main_Token_Model_MANAGER.RootUrl,mainCreateList];
    NSMutableDictionary *param = [NSMutableDictionary dictionary];
    param[@"page"] = [NSString stringWithFormat:@"%d",page+1];
    param[@"size"] = @"10";
    param[@"userId"] = userId;
    return [self postWithUrl:url param:param reponseObjctClass:reponseObjctClass];
}

/** 点赞创作列表 */
+(RACSignal *)loadlaudCreateListPage:(NSInteger)page reponseObjctClass:(Class)reponseObjctClass{
    NSString *url = [NSString stringWithFormat:@"%@%@",Main_Token_Model_MANAGER.RootUrl,laudCreateList];
    NSMutableDictionary *param = [NSMutableDictionary dictionary];
    param[@"page"] = [NSString stringWithFormat:@"%ld",page+1];
    param[@"size"] = @"10";
    return [self postWithUrl:url param:param reponseObjctClass:reponseObjctClass];
}


/** 根据品牌获取系列 */
+(RACSignal *)loadGoodsSeries:(NSString*)goodsID reponseObjctClass:(Class)reponseObjctClass{
    NSString *url = [NSString stringWithFormat:@"%@%@%@",Main_Token_Model_MANAGER.RootUrl,goodsSeries,goodsID];
    return [self getWithUrl:url param:nil reponseObjctClass:reponseObjctClass];
}


/** 视频上传签名 */
+(RACSignal *)loadupVideoreponseObjctClass:(Class)reponseObjctClass{
    NSString *url = [NSString stringWithFormat:@"%@%@",Main_Token_Model_MANAGER.RootUrl,upVideo];
    return [self getWithUrl:url param:nil reponseObjctClass:reponseObjctClass];
}


/** 上传腕表视频信息 */
+(RACSignal *)loadVideosaveVideoId:(NSString*)videoId id:(NSString*)id goodId:(NSString*)goodId seriesId:(NSString*)seriesId brandId:(NSString*)brandId goodName:(NSString*)goodName seriesName:(NSString*)seriesName brandName:(NSString*)brandName reponseObjctClass:(Class)reponseObjctClass{
    NSString *url = [NSString stringWithFormat:@"%@%@",Main_Token_Model_MANAGER.RootUrl,videosave];
    NSMutableDictionary *param = [NSMutableDictionary dictionary];
    param[@"id"] = id;
    param[@"videoId"] = videoId;
    param[@"goodId"] = goodId;
    param[@"seriesId"] = seriesId;
    param[@"brandId"] = brandId;
    param[@"goodName"] = goodName;
    param[@"seriesName"] = seriesName;
    param[@"brandName"] = brandName;

    return [self postWithUrl:url param:param reponseObjctClass:reponseObjctClass];
}



/** 举报 */
+(RACSignal *)loadReportRype:(NSString*)type sourceId:(NSString*)sourceId category:(NSString*)category ReponseObjctClass:(Class)reponseObjctClass{
    
    NSString *url = [NSString stringWithFormat:@"%@%@",Main_Token_Model_MANAGER.RootUrl,Report];
    NSMutableDictionary *param = [NSMutableDictionary dictionary];
    param[@"type"] = type;
    param[@"sourceId"] = sourceId;
    param[@"category"] = category;
    return [self postWithUrl:url param:param reponseObjctClass:reponseObjctClass];
}

/** 举报类别 */
+(RACSignal *)loadReportCategoryReponseObjctClass:(Class)reponseObjctClass{
    NSString *url = [NSString stringWithFormat:@"%@%@",Main_Token_Model_MANAGER.RootUrl,ReportCategory];
    return [self getWithUrl:url param:nil reponseObjctClass:reponseObjctClass];
}



/** 汇率列表 */
+(RACSignal *)loadReporthuilvlist:(Class)reponseObjctClass{
    NSString *url = [NSString stringWithFormat:@"%@%@",Main_Token_Model_MANAGER.RootUrl,huilvlist];
    return [self getWithUrl:url param:nil reponseObjctClass:reponseObjctClass];
}


/** 推荐用户 */
+(RACSignal *)loadRecommendUserlist:(Class)reponseObjctClass{
    NSString *url = [NSString stringWithFormat:@"%@%@3",Main_Token_Model_MANAGER.RootUrl,recommenduser];
    return [self getWithUrl:url param:nil reponseObjctClass:reponseObjctClass];
}

/** 推荐的创作内容 */
+(RACSignal *)loadRecommendcreationlistPage:(NSInteger)page reponseObjctClass:(Class)reponseObjctClass{
    NSString *url = [NSString stringWithFormat:@"%@%@",Main_Token_Model_MANAGER.RootUrl,recommendcreation];
    NSMutableDictionary *param = [NSMutableDictionary dictionary];
    param[@"page"] =  [NSString stringWithFormat:@"%ld",page+1];
    param[@"size"] = @"10";
    return [self postWithUrl:url param:param reponseObjctClass:reponseObjctClass];
}



/** 推荐关键词 */
+(RACSignal *)loadkeywordlist:(Class)reponseObjctClass{
    NSString *url = [NSString stringWithFormat:@"%@%@",Main_Token_Model_MANAGER.RootUrl,keywordlist];
    return [self getWithUrl:url param:nil reponseObjctClass:reponseObjctClass];
}


/**话题选择列表*/
+(RACSignal *)loadTopicSubjectslistPage:(NSInteger)page reponseObjctClass:(Class)reponseObjctClass{
    NSString *url = [NSString stringWithFormat:@"%@%@",Main_Token_Model_MANAGER.RootUrl,userPTopicSubjects];
    NSMutableDictionary *param = [NSMutableDictionary dictionary];
    param[@"page"] =  [NSString stringWithFormat:@"%ld",page+1];
    param[@"size"] = @"100";
    return [self postWithUrl:url param:param reponseObjctClass:reponseObjctClass];
}

/**话题选择列表*/
+(RACSignal *)loadTopicDefaultSubjecte:(Class)reponseObjctClass{
    NSString *url = [NSString stringWithFormat:@"%@%@",Main_Token_Model_MANAGER.RootUrl,userPTopicDefaultSubject];
    return [self getWithUrl:url param:nil reponseObjctClass:reponseObjctClass];
}

/**微信分享*/
+(RACSignal *)loadWechat:(Class)reponseObjctClass{
    
    NSString *url = [NSString stringWithFormat:@"%@/app/share/config/ios",Main_Token_Model_MANAGER.RootUrl];

//    NSString *url = @"http://localhost:8080/app/share/config/ios";
    return [self getWithUrl:url param:nil reponseObjctClass:reponseObjctClass];
}


#pragma mark - --- 搜索属性
+(RACSignal *)loadSearchAttribute:(Class)reponseObjctClass{
    NSString *url = [NSString stringWithFormat:@"%@%@",Main_Token_Model_MANAGER.RootUrl,searchAttribute];
    
    //    NSString *url = @"http://localhost:8080/app/share/config/ios";
    return [self getWithUrl:url param:nil reponseObjctClass:reponseObjctClass];
}
//(NSDictionary *)dic page:(NSInteger)page sort:(NSString*)sort

#pragma mark - ---  搜索商品数量
+(RACSignal *)loadsearchGoodsCount:(NSArray*)arr reponseObjctClass:(Class)reponseObjctClass{
    
    NSString *url = [NSString stringWithFormat:@"%@%@",Main_Token_Model_MANAGER.RootUrl,searchGoodsCount];
    
    NSMutableDictionary *param = [[NSMutableDictionary alloc]init];
    
    [serviceDefualt setAttribute:arr param:param];
    [serviceDefualt setBrand:arr param:param];
    [serviceDefualt setPrice:arr param:param];
    
//    if (kUSER_Filtrate_MANAGER.SearchResultTopBarModel.keyWord.length>0&& ![kUSER_Filtrate_MANAGER.SearchResultTopBarModel.keyWord isEqualToString:@"筛选"]) {
//        param[@"keyword"] = kUSER_Filtrate_MANAGER.SearchResultTopBarModel.keyWord;
//    }
    
    return [self postWithUrl:url param:param reponseObjctClass:reponseObjctClass];
    
}

#pragma mark - ---  搜索商品数量(带关键词搜索)

+(RACSignal *)loadsearchGoodsCount:(NSArray*)arr keyword:(NSString*)keyword reponseObjctClass:(Class)reponseObjctClass{
    
    NSString *url = [NSString stringWithFormat:@"%@%@",Main_Token_Model_MANAGER.RootUrl,searchGoodsCount];
    
    NSMutableDictionary *param = [[NSMutableDictionary alloc]init];
    
    [serviceDefualt setAttribute:arr param:param];
    [serviceDefualt setBrand:arr param:param];
    [serviceDefualt setPrice:arr param:param];
    
    if (keyword.length>0&& ![keyword isEqualToString:@"筛选"]) {
        param[@"keyword"] = keyword;
    }
    
    return [self postWithUrl:url param:param reponseObjctClass:reponseObjctClass];
    
}


/**
 搜索获取产品列表
 
 @param page 页数
 @param sort 价格
 @return 获取产品列表
 */
+(RACSignal *)loadSeachGoodsList:(NSArray*)arr page:(NSInteger)page sort:(NSInteger)sort keyword:(NSString*)keyword reponseObjctClass:(Class)reponseObjctClass{
    
    NSString *url = [NSString stringWithFormat:@"%@%@",Main_Token_Model_MANAGER.RootUrl,goods];
    
    NSMutableDictionary *param = [[NSMutableDictionary alloc]init];
    
    [serviceDefualt setAttribute:arr param:param];
    
    [serviceDefualt setBrand:arr param:param];
    
    [serviceDefualt setPrice:arr param:param];
    
    if (keyword.length>0&& ![keyword isEqualToString:@"筛选"]) {
        param[@"keyword"] = keyword;
    }
    
    
    
    
    param[@"page"] = [NSNumber numberWithInteger: page+1];
    
    switch (sort) {
        case 0:
            param[@"sort"] = @"sourceCount,desc";
            break;
        case 1:
            param[@"sort"] = @"searchCount,desc";
            break;
        case 2:
            param[@"sort"] = @"secondHandPrice,asc";
            break;
        case 3:
            param[@"sort"] = @"secondHandPrice,desc";
            break;
        case 4:
            param[@"sort"] = @"officialPrice,asc";
            break;
        case 5:
            param[@"sort"] = @"officialPrice,desc";
            break;
            
            
        default:
            break;
    }
    
    param[@"size"] = [NSNumber numberWithInt:10];
    
    return [self postWithUrl:url param:param reponseObjctClass:reponseObjctClass];
    
}


+(void)setAttribute:(NSArray*)arr param:(NSMutableDictionary*)param{
    
    NSMutableArray * arrMParam = [[NSMutableArray alloc]init];
    for (Seach_FiltrateAttributeSubData_Model_WX *model in arr) {
        
        if (model.indexTbv == 0 || model.indexTbv == 1) {
            continue;
        }
        
        [arrMParam addObject:model];
    }
    
    
    NSMutableArray * arrMAttribute = [[NSMutableArray alloc]init];
    
    
//    NSMutableDictionary * dicMAttribute = [[NSMutableDictionary alloc]init];

    for (Seach_FiltrateAttributeSubData_Model_WX *model in arrMParam) {
        //取出已经剔除好的 原数据
        
        if (arrMAttribute.count == 0) {
            //没有任何数据时候直接添加
            NSMutableDictionary * dicMsub = [[NSMutableDictionary alloc]init];
            [dicMsub setValue:model.groupId forKey:@"labelId"];
            
            NSMutableArray * arrMDicM = [[NSMutableArray alloc]init];
            [arrMDicM addObject:model.labelValue[0]];
            [dicMsub setValue:arrMDicM forKey:@"valueIds"];
            
            [arrMAttribute addObject:dicMsub];
        }else{
            //判断是否有找到对应 数据 找到了 就退出当前循环
            BOOL dicMAttributeType = NO;

            for (NSDictionary *dicMAttribute in arrMAttribute) {
                
                //循环便利
                //取出每个arrMAttribute的数据
//                if (dicMAttributeType == YES) {
//                    dicMAttributeType = NO;
//                    break;
//                }else{
                    if([dicMAttribute[@"labelId"] isEqualToString:model.groupId]){
                        //如果有这个key 就往 valueIds添加id
                        dicMAttributeType = YES;
                        NSMutableArray *arrMgroupId = dicMAttribute[@"valueIds"];
                        [arrMgroupId addObject:model.labelValue[0]];
                        [dicMAttribute setValue:arrMgroupId forKey:@"valueIds"];
                        break;
                    }
//                }
            }
            if (dicMAttributeType == NO) {
                //如果没有这个key 就往arrMAttribute新增加这个字典
                NSMutableDictionary * dicMsub1 = [[NSMutableDictionary alloc]init];
                [dicMsub1 setValue:model.groupId forKey:@"labelId"];
                
                NSMutableArray * arrMDicM1 = [[NSMutableArray alloc]init];
                [arrMDicM1 addObject:model.labelValue[0]];
                [dicMsub1 setValue:arrMDicM1 forKey:@"valueIds"];
                
                [arrMAttribute addObject:dicMsub1];
            }
            
        }
    }
    NSLog(@"");
    [param setValue:arrMAttribute forKey:@"attributes"];
//    param[@"attributes"] = arrMAttribute;
}

+(void)setBrand:(NSArray*)arr param:(NSMutableDictionary*)param{
    
    NSMutableArray * arrMParam = [[NSMutableArray alloc]init];
    for (Seach_FiltrateAttributeSubData_Model_WX *model in arr) {
        if (model.indexTbv == 0) {
            [arrMParam addObject:model];
        }
    }

    NSMutableArray *arrM = [[NSMutableArray alloc]init];
    
    for (Seach_FiltrateAttributeSubData_Model_WX *model in arrMParam) {
        [arrM addObject:model.labelValue[0]];
    }
    
    param[@"brandIds"] = arrM;
}

+(void)setPrice:(NSArray*)arr param:(NSMutableDictionary*)param{
    //officialPriceRanges secondhandPriceRanges
    
    NSMutableArray * arrMParam = [[NSMutableArray alloc]init];
    for (Seach_FiltrateAttributeSubData_Model_WX *model in arr) {
        if (model.indexTbv == 1) {
            [arrMParam addObject:model];
        }
    }
    
    NSMutableArray * arrMofficial = [[NSMutableArray alloc]init];
    NSMutableArray * arrMsecondhand = [[NSMutableArray alloc]init];
    NSMutableArray * arrMpreservation = [[NSMutableArray alloc]init];

    

    for (Seach_FiltrateAttributeSubData_Model_WX *model in arrMParam) {
        if (model.indexPath.section==1) {
            [arrMpreservation addObject:model.labelValue[0]];
        }else{
            if (model.ispublicPrice) {
                [arrMofficial addObject:model.labelValue[0]];
            }else{
                [arrMsecondhand addObject:model.labelValue[0]];
            }
        }
    }

    param[@"officialPriceRanges"] = arrMofficial;
    
    param[@"secondhandPriceRanges"] = arrMsecondhand;
    
    param[@"preservationRateRanges"] = arrMpreservation;

    

}

#pragma mark - --- 品牌馆标签
+(RACSignal *)loadGoodsBrandTagstList:(Class)reponseObjctClass{
    NSString *url = [NSString stringWithFormat:@"%@%@",Main_Token_Model_MANAGER.RootUrl,goodsBrandTagsList];
    return [self getWithUrl:url param:nil reponseObjctClass:reponseObjctClass];
}

#pragma mark - --- 品牌馆对应标签获取品牌
+(RACSignal *)loadGoodsBrandTagst:(NSString*)BrandId reponseObjctClass:(Class)reponseObjctClass{
    NSString *url = [NSString stringWithFormat:@"%@%@/%@",Main_Token_Model_MANAGER.RootUrl,goodsBrandTags,BrandId];
    
    return [self getWithUrl:url param:nil reponseObjctClass:reponseObjctClass];
}
#pragma mark - --- 品牌主题页
+(RACSignal *)loadGoodsBrand:(NSString*)BrandId reponseObjctClass:(Class)reponseObjctClass{
    NSString *url = [NSString stringWithFormat:@"%@%@/%@",Main_Token_Model_MANAGER.RootUrl,GoodsBrand,BrandId];
    
    return [self getWithUrl:url param:nil reponseObjctClass:reponseObjctClass];
}


#pragma mark - --- 我关注的品牌/推荐
+(RACSignal *)loadgoodsBrandMyFollow:(Class)reponseObjctClass{
    NSString *url = [NSString stringWithFormat:@"%@%@",Main_Token_Model_MANAGER.RootUrl,goodsBrandMyFollow];

    return [self getWithUrl:url param:nil reponseObjctClass:reponseObjctClass];
}


#pragma mark - --- 热门品牌标签
+(RACSignal *)loadcreateHotLabel:(Class)reponseObjctClass{
    NSString *url = [NSString stringWithFormat:@"%@%@",Main_Token_Model_MANAGER.RootUrl,createHotLabel];
    
    return [self getWithUrl:url param:nil reponseObjctClass:reponseObjctClass];
}
#pragma mark - --- 获取特卖场列表

+(RACSignal *)loadspecialSaleStatus:(NSString*)status reponseObjctClass:(Class)reponseObjctClass{
    NSString *url = [NSString stringWithFormat:@"%@%@/%@/recommend-goods",Main_Token_Model_MANAGER.RootUrl,specialSaleStatus,status];
    return [self getWithUrl:url param:nil reponseObjctClass:reponseObjctClass];
}

#pragma mark - --- 指定特卖场货源列表

+(RACSignal *)loadspecialSaleSceneid:(NSString*)specialSaleSceneId page:(NSInteger)page reponseObjctClass:(Class)reponseObjctClass{
    NSString *url =[NSString stringWithFormat:@"%@/app/special-sale-goods/special-sale-scene-id/%@/sell/page/%ld/size/%@",Main_Token_Model_MANAGER.RootUrl,specialSaleSceneId,page+1,@"10"];
    return [self getWithUrl:url param:nil reponseObjctClass:reponseObjctClass];
}
+(RACSignal *)loadspecialSaleSceneid:(NSString*)specialSaleSceneId brandId:(NSString *)brandId sexId:(NSString*)sexId page:(NSInteger)page reponseObjctClass:(Class)reponseObjctClass{
    NSString *url =[NSString stringWithFormat:@"%@/app/special-sale-goods/special-sale-scene-id/%@/sell/page/%ld/size/%@",Main_Token_Model_MANAGER.RootUrl,specialSaleSceneId,page+1,@"10"];
    NSMutableDictionary *param = [NSMutableDictionary dictionary];
    param[@"brandId"] = brandId;
    param[@"sexId"] = sexId;
    return [self getWithUrl:url param:nil reponseObjctClass:reponseObjctClass];
}
#pragma mark - --- 指定特卖场列表

+(RACSignal *)loadspecialSaleSceneid:(NSString*)GoodsId reponseObjctClass:(Class)reponseObjctClass{
    NSString *url =[NSString stringWithFormat:@"%@/app/special-sale-goods/id/%@",Main_Token_Model_MANAGER.RootUrl,GoodsId];
    return [self getWithUrl:url param:nil reponseObjctClass:reponseObjctClass];
}


#pragma mark - --- 获取筛选品牌列表
+(RACSignal *)loadspecialSaleBrandList:(Class)reponseObjctClass{
    NSString *url =[NSString stringWithFormat:@"%@%@",Main_Token_Model_MANAGER.RootUrl,specialSaleBrandList];
    return [self getWithUrl:url param:nil reponseObjctClass:reponseObjctClass];
}
#pragma mark - --- 获取筛选列表
+(RACSignal *)loadspecialSaleSexList:(Class)reponseObjctClass{
    NSString *url =[NSString stringWithFormat:@"%@%@",Main_Token_Model_MANAGER.RootUrl,specialSaleSexList];
    return [self getWithUrl:url param:nil reponseObjctClass:reponseObjctClass];
}
@end
